home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
The World of Computer Software.iso
/
eue10.zip
/
USERATIO.PRG
< prev
next >
Wrap
Text File
|
1992-12-29
|
2KB
|
50 lines
*Extended User Editor (useratio) - version 1.0 12/30/92 (c) 1992 James E. Swarm
*
*This version of the program is fully working, and is to be considered
*shareware. If you use this software I ask that you register it with
*a donation to my BBS. Registered users will receive full tdbs source
*(available for download) for both the USERLIST and USEREDIT program.
*A donation is $20.00 or higher... thats up to you, but the better
*responce I get, the more I will update the programs.
*
*Please send all donations to:
*
*James E. Swarm
*
*P.O. Box 361093
*Strongsville, Ohio 44136
*BBS (216)237-4980
*
*WARNING this code changes user flags A1 4!!!
*
SET EXCLUSIVE OFF
SET ESCAPE OFF
PUBLIC up_byte,down_byte,upload,download,user
if uansi()
set color to w+
endif
a1 = uauth(1)
use "useredit"
set index to "username"
user = uname()
seek user
if .NOT. found()
? ""
? "User Database Record Not Found, please contact sysop."
? ""
a1_off = stuff(a1,4,1,".")
set = ulreplace(uauth,1,a1_off) && unknown user flag off
wait
quit
endif
up_byte = ulpeek(139,4)
down_byte = ulpeek(135,4)
if down_byte >= up_byte * f_ratio1
a1_on = stuff(a1,4,1,"X") && unable to dl set flag on
set = ulreplace(uauth,1,a1_on) && replaces A1 flag 3
else
a1_off = stuff(a1,4,1,".")
set = ulreplace(uauth,1,a1_off) && ok to dl set flag off
endif
quit